home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
statsbar
/
example.frm
< prev
next >
Wrap
Text File
|
1995-09-06
|
2KB
|
79 lines
VERSION 2.00
Begin Form Form1
Caption = "Form1"
ClientHeight = 5820
ClientLeft = 1095
ClientTop = 1485
ClientWidth = 7365
Height = 6225
Left = 1035
LinkMode = 1 'Source
LinkTopic = "Form1"
ScaleHeight = 5820
ScaleWidth = 7365
Top = 1140
Width = 7485
Begin CommandButton Command1
Caption = "Click here to change first section"
Height = 375
Left = 1440
TabIndex = 0
Top = 1920
Width = 3735
End
Begin CommandButton Command2
Caption = "Click Here to clear first section"
Height = 375
Left = 1440
TabIndex = 1
Top = 2400
Width = 3735
End
Begin StatusBar StatusBar1
BackColor = &H00C0C0C0&
Caption = "StatusBar1"
Prop18 = 0 'Down
Height = 375
Left = 0
Top = 5160
Width = 3375
End
Begin StatusBar StatusBar2
BackColor = &H00C0C0C0&
Prop18 = 0 'Down
Height = 375
Left = 3720
Top = 5160
Width = 975
End
Begin StatusBar StatusBar3
BackColor = &H00C0C0C0&
Prop18 = 0 'Down
Height = 375
Left = 4680
Top = 5160
Width = 855
End
Begin StatusBar StatusBar4
BackColor = &H00C0C0C0&
Prop18 = 1 'Flat
Height = 375
Left = 5520
Top = 5160
Width = 1815
End
End
Sub Command1_Click ()
statusbar1.caption = "Pretty Cool, Huh?"
End Sub
Sub Command2_Click ()
statusbar1.caption = ""
End Sub
Sub Form_MouseMove (Button As Integer, Shift As Integer, x As Single, y As Single)
statusbar2.caption = Str$(x)
statusbar3.caption = Str$(y)
End Sub